# coding:utf-8
# 作者：理想国真恵玩
import pandas as pd

df = pd.read_csv('data/stock.csv')

# sum：求和
print(df.sum().head())
print('-' * 33)

# mean：求平均值
print(df.mean().head())
print('-' * 33)

# median：求中位数
print(df.median().head())
print('-' * 33)

# min：求最大值
print(df.min().head())
print('-' * 33)

# max：求最小值
print(df.max().head())
print('-' * 33)

# mode：求众数
print(df.mode().head())
print('-' * 33)

# abs：求绝对值
print(df.abs().head())
print('-' * 33)

# prod：求乘积
# print(df.prod().head())
# print('-' * 33)

# std：求标准差
print(df.std().head())
print('-' * 33)

# var：求方差
print(df.var().head())
print('-' * 33)

# idxmax：求最大数的索引
print(df.idxmax().head())
print('-' * 33)

# idxmin：求最小数的索引
print(df.idxmin().head())
print('-' * 33)
